FROM hub.c.163.com/library/java:openjdk-8-jre

MAINTAINER ocean 75751845@qq.com

ADD wechat.jar /root/java/wechat.jar

RUN cd /root/java

EXPOSE 9000

CMD ["java" ,"-jar" ,"wechat.jar" , "--spring.profiles.active=prod"]



#构建
# docker build -t docker-wechat:latest .

#run

#docker run --name docker-wechat -d -p 9000:9000 --network my-bridge --restart=on-failure:3 \
#-v /etc/localtime:/etc/localtime:ro \
#docker-wechat:latest


